# -*- coding:utf-8 -*-
"""
@Author : 审心
@Time : 2023/10/26 14:54
"""
from dataclasses import dataclass
from enum import Enum


# 插件枚举
@dataclass
class WebPlugin(Enum):
    XSW = 1
    AM = 2

    @staticmethod
    def get_value(plugin):
        return plugin.value


if __name__ == "__main__":
    print(WebPlugin.get_value(WebPlugin.XSW))
